Skip to content

docs: Document Transaction and Span kwargs typed dicts #2923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Mar 28, 2024

Repeating the doc comments also on the kwargs typed dicts enables better hinting in VSCode. See example below.

Before:
Screenshot 2024-03-28 at 15 16 08

After:
Screenshot 2024-03-28 at 15 14 44

I wish there was a way to do this without simply repeating the documentation both on the classes and in the Kwargs typeddicts, but this is the best way I found.

ref: getsentry/sentry-docs#5082

Copy link
Member

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

@szokeasaurusrex szokeasaurusrex merged commit d3d8f1f into sentry-sdk-2.0 Mar 28, 2024
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/document-start-transaction-kwargs-typed-dicts branch March 28, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants